﻿ <html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>后台管理系统</title>
<style type="text/css">
<!--
td {
	font-size: 12px;
	color: #000000;
	text-decoration: none;
}

-->
</style>

 </head>
<script type="text/javascript">
var $ = function(v){return document.getElementById(v);}
function isSecurity(v){
 if (v.length < 3) { iss.reset();return;}
 var lv = -1;
 if (v.match(/[a-z]/ig)){lv++;}
 if (v.match(/[0-9]/ig)){lv++;}
 if (v.match(/(.[^a-z0-9])/ig)){lv++;}
 if (v.length < 6 && lv > 0){lv--;}
 iss.reset();
 switch(lv) { 
 case 0:
 iss.level0();
 break;
 case 1:
 iss.level1();
 break;
 case 2:
 iss.level2();
 break;
 default:
 iss.reset();
 }
}
var iss = {
 color:["FF0000","FFCC33","66CC00","f7f7f7"],
 text:["弱","中","强"],
 width:["50","100","150","10"],
 reset:function(){
 $("B").style.backgroundColor = iss.color[3];
 $("B").style.width = iss.width[3];
 $("A").innerHTML = "未能评级";
 },
 level0:function(){
 $("B").style.backgroundColor = iss.color[0];
 $("B").style.width = iss.width[0];
 $("A").innerHTML = "低强度"; 
 },
 level1:function(){
 $("B").style.backgroundColor = iss.color[1];
 $("B").style.width = iss.width[1];
 $("A").innerHTML = "普通"; 
 },
 level2:function(){
 $("B").style.backgroundColor = iss.color[2];
 $("B").style.width = iss.width[2];
 $("A").innerHTML = "高强度";
 }
}
</script>
<body>
<p align="center"> 
<h1 align="center">&nbsp;</h1><br><br>
<div align="center">
  <table width="457" height="236" border="0" cellpadding="0" cellspacing="0">
    <tr> 
      <td height="236" background="images/login.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td width="120">&nbsp;</td>
          <td><br>
              <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1">
                <form method=post action="check.asp">
                  <tr>
                    <td height="30" align="center" valign="middle" class="text"><div align="left">用户名：                    </div></td>
                    <td height="30" align="center" valign="middle" class="text"><div align="left">
                      <input class="input" style="color: #000000; background-color: #FFFFFF; border: 1px solid #cccccc" size="16" name="username">
                    </div></td>
                  </tr>
                  <tr>
                    <td height="29" align="center" valign="middle" class="text"><div align="left">密　码：                    </div></td>
                    <td height="29" align="center" valign="middle" class="text"><div align="left">
                      <input class="input" style="color: #000000; background-color: #FFFFFF; border: 1px solid #cccccc" type="password" size="16" name="password" onKeyUp="isSecurity(this.value);">
                    </div></td>
                  </tr>
                  <tr>
                    <td height="29" align="center" valign="middle" class="text"><div align="left">验证码：</div></td>
                    <td height="29" align="center" valign="middle" class="text"><div align="left">
                      <input name="code" type="text" class="input" id="code" style="color: #000000; background-color: #FFFFFF; border: 1px solid #cccccc" size="6">
                    <img src="/inc/code.asp" style="cursor:hand" onClick="this.src='/inc/code.asp';" alt="看不清?点一下" /></div></td>
                  </tr>
                  <tr>
                    <td height="55" align="center" valign="center" class="text">&nbsp;</td>
                    <td height="55" align="center" valign="center" class="text">
                      <div align="left">
                        <input name="imageField" type="image" src="images/btn_login.gif" width="58" height="20" border="0">                      
                        <br>                    
                    </div></td>
                  </tr>
                  <tr>
                    <td width="21%" align="center" class="text"><div align="left">密码强度:                    </div></td>
                    <td width="79%" align="center" class="text"><table width="100" border="0" align="left" cellpadding="0" cellspacing="0">
                      <tr height="20">
                        <td align="center" valign="middle" id="B"><span id="A"></span></td>
                      </tr>
                    </table></td>
                  </tr>
                </form>
              </table></td>
        </tr>
        <tr>
          <td colspan="2">&nbsp;</td>
          </tr>
      </table></td>
    </tr>
    <tr>
      <td align="center">&nbsp;</td>
    </tr>
  </table>
  
</div>
</body>
</html>

</body>
</html>
